import {
  queryAllAssociationFlowList,
  queryManualAssociationFlowList
} from '@/api/common';


export const relateInfoConfig = {
  columns: [{
      type: 'index',
      label: '序号',
      width: '65',
      fixed: 'left'
    },
    {
      label: '上报时间',
      prop: 'sendTime',
      minWidth: '10em'
    },
    {
      label: '信息编号',
      prop: 'serialNo',
      minWidth: '11em'
    },
    {
      label: '标题',
      prop: 'title',
      type: 'slot',
      minWidth: '10em'
    },
    {
      label: '上报单位',
      prop: 'createOrgName',
      minWidth: '10em'
    }
  ],
  tabItems: [{
    label: '全部',
    value: 'all',
    func: queryAllAssociationFlowList,
    tabType: 0
  }, {
    label: '时间关联',
    value: 'time'
  }, {
    label: '事件关联',
    value: 'event'
  }, {
    label: '人员关联',
    value: 'user',
    func: queryAllAssociationFlowList,
    tabType: 1
  }, {
    label: '地址关联',
    value: 'address'
  }, {
    label: '手动关联',
    value: 'manual',
    func: queryManualAssociationFlowList
  }],
  reqCondition: {
    sorts: [{
      sendTime: 'desc'
    }]
  }
}